/** WPI CS509 cisco Stratego User Messages. These messages contain a user-id.
 * These messages contain a user id.
 * 
 */
package edu.wpi.cs509.messages.server;

import edu.wpi.cs509.representation.UserName;

/** Message with user context (and no game context)
 * @author sparadis
 *
 */
public abstract class MsgSvUserContext extends MsgServerContext {

	/**
	 * serializable version number
	 */
	private static final long serialVersionUID = 1L;
	
	private UserName username;
	
	/** 
	 * Dual constructors: this one takes UserName.
	 */
	public MsgSvUserContext(UserName username) {
		this.username = username;
	}
	
	/**
	 * Return username for this message.
	 * @return username
	 */
	public UserName getUserName() {
		return username;
	}

}
